@charset "UTF-8";
@fixedTopHeight: 38px;
@containerPaddingLeft: 15px;
@color-fff: #fff;
@color-eee: #eee;
@color-ddd: #ddd;
@color-ccc: #ccc;
@color-aaa: #aaa;
@color-999: #999;
@color-666: #666;
@color-333: #333;

@btnBackground: #464851;
@btnTextColor: #e3b56d;
@btnRadius: 40px;
@radius4: 4px;
@radius8: 8px;
@fontSize20: 20px;
@fontSize18: 18px;
@fontSize16: 16px;
@fontSize14: 14px;
@fontSize12: 12px;

.pipi-trans(@delay:.3s) {
    -webkit-transition: all @delay;
    -moz-transition: all @delay;
    -ms-transition: all @delay;
    -o-transition: all @delay;
    transition: all @delay;
}

.hidden-x-scroll {
    position: relative;
    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 10px;
        background: #fff;
    }
}

.fixed-top {
    position: fixed;
    z-index: 11;
    height: @fixedTopHeight;
    line-height: @fixedTopHeight;
    left: 0;
    right: 0;
    top: 0;
    padding: 0 15px;
    background: #eee;

    .btn-back {
        float: left;
        color: @color-666;
        margin-left: -2px;
        position: relative;
        z-index: 2;
    }

    .name {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        font-size: @fontSize16;
        line-height: @fixedTopHeight;
        font-weight: bold;
        text-align: center;
    }
}

.pipi-btn {
    background: @btnBackground;
    color: @btnTextColor;
    -webkit-border-radius: @btnRadius;
    -moz-border-radius: @btnRadius;
    border-radius: @btnRadius;
    border-color: @btnBackground;
    &:before {
        display: none;
    }
}

.base-info-form {
    .btn-commom {
        text-align: center;
        border: 1px solid @color-ddd;
        color: @color-999;
        font-size: 14px;
        -webkit-border-radius: @btnRadius;
        -moz-border-radius: @btnRadius;
        border-radius: @btnRadius;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    padding: @fixedTopHeight @containerPaddingLeft 0;

    h2 {
        font-size: 24px;
        font-weight: normal;
        text-align: center;
        margin-bottom: 5px;
        & + p {
            text-align: center;
            color: @color-999;
            margin-top: 0;
        }
    }
    .am-flexbox-item:first-child {
        font-size: 16px;
        color: @color-999;
    }
    .show-value {
        padding-right: 13vw;
        text-align: center;
        span {
            display: inline-block;
            vertical-align: middle;
        }
        & > span:first-child {
            font-size: 20px;
            font-weight: bold;
            padding-right: 10px;
        }
        & > span + span {
            color: @color-999;
        }
    }
    .inset-shadow {
        position: relative;
        &:before {
            position: absolute;
            z-index: 10;
            top: 0;
            content: '';
            width: 100%;
            height: 0px;
            -webkit-box-shadow: 0 0px 8px 2px rgba(0, 0, 0, .1);
            -moz-box-shadow: 0 0px 8px 2px rgba(0, 0, 0, .1);
            box-shadow: 0 0px 8px 2px rgba(0, 0, 0, .1);
        }
        &:after {
            position: absolute;
            z-index: 10;
            bottom: 0;
            content: '';
            width: 100%;
            height: 0px;
            -webkit-box-shadow: 0 0px 8px 2px rgba(0, 0, 0, .1);
            -moz-box-shadow: 0 0px 8px 2px rgba(0, 0, 0, .1);
            box-shadow: 0 0px 8px 2px rgba(0, 0, 0, .1);
        }
    }
    .sex-radios {
        display: flex;
        p {
            margin: 0;
        }
        .am-radio-item {
            flex: 1;
        }
        .am-list-line {
            display: block;
        }
        .am-list-content {
            text-align: center;
        }
        .am-list-extra {
            text-align: center;
            height: 0;
            padding: 0;
        }
        .am-radio {
            position: static;
        }
        .p-icon {
            position: relative;
            margin: 0;
            width: 60%;
            margin: 0 auto 10px;
            height: 0;
            padding: 30% 0;
            background: @color-ccc;
            color: @color-fff;
            -webkit-border-radius: 100%;
            -moz-border-radius: 100%;
            border-radius: 100%;
            .anticon {
                position: absolute;
                left: 50%;
                top: 50%;
                margin: -30px 0px 0px -20px;
                font-size: 40px;
            }
        }
        .man-radio {
            &.active {
                .p-icon {
                    background: #92d2ff;
                }
            }
        }
        .woman-radio {
            &.active {
                .p-icon {
                    background: #ffaeae;
                }
            }
        }

    }
    .rule-slider {
        .am-slider-dot {
            width: 0;
            -webkit-border-radius: 0;
            -moz-border-radius: 0;
            border-radius: 0;
            bottom: 2px;
            margin-left: 0px;
            border-width: 1px;
            border-right: none;
            border-bottom: 0;
            border-top: 0;
        }
        .am-slider-handle {
            width: 0;
            border-width: 1px;
            -webkit-border-radius: 0;
            -moz-border-radius: 0;
            border-radius: 0;
            margin-left: 0;
            margin-top: -18px;
            height: 20px;
        }
    }
    .profession-radios {
        display: flex;
        flex-wrap: wrap;
        padding: 20px 0;
        p {
            margin: 0;
            font-size: 14px;
        }
        img {
            width: 60%;
            height: auto;
        }
        .am-radio {
            position: static;
        }
        .am-radio-item {
            max-width: 33.33%;
            min-width: 33.33%;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            text-align: center;
        }
        .am-list-content {
            text-align: center;
        }
        .am-list-extra {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            opacity: 0;
        }
        .p-icon {
            margin-bottom: 10px;
        }
    }
    .more-info {
        text-align: center;
        color: @color-999;
        .icon {
            vertical-align: middle;
        }
    }
    .living-radios {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
        p {
            margin: 0;
        }
        .am-radio {
            position: static;
        }
        .am-radio-item {
            min-width: 50%;
            max-width: 50%;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;

            &.active {
                .am-list-content {
                    .pipi-btn;
                }
            }
        }

        .am-list-extra {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            opacity: 0;
        }

        .am-list-content {
            .btn-commom;
        }
    }
    .work-checkboxs {
        margin-left: -15px;
        .am-checkbox-item {
            display: inline-block;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;

            &.active {
                .am-list-content {
                    .pipi-btn;
                }
            }
        }
        .am-list-line {
            margin: 0;
            padding: 0;
        }
        .am-checkbox {
            position: static;
        }
        .am-list-thumb {
            position: absolute;
            z-index: 2;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            opacity: 0;
        }
        .am-list-content {
            display: block;
            padding-left: 15px;
            padding-right: 15px;
            .btn-commom;
        }
    }

    .more-info-layer {
        display: none;
        &.show {
            display: block;
        }
    }
}

.home {
    padding: @containerPaddingLeft;
    h2 {

        font-size: 30px;
        line-height: 1em;
        padding: 10px 0;
        margin: 0;
        font-weight: normal;
    }
    .date {
        margin: 0;
        color: @color-999;
    }
    .today-rmd {
        margin: 20px 0 40px;
        -webkit-border-radius: @radius8;
        -moz-border-radius: @radius8;
        border-radius: @radius8;
        -webkit-box-shadow: 0px 6px 20px 2px rgba(0, 0, 0, .15);
        -moz-box-shadow: 0px 6px 20px 2px rgba(0, 0, 0, .15);
        box-shadow: 0px 6px 20px 2px rgba(0, 0, 0, .15);
        padding: 20px 15px;
        h3 {
            font-size: @fontSize20;
            line-height: 1.4em;
            margin: 0;
            padding: 0;
        }

        .scroll-x-wrapper {
            overflow: hidden;
            margin: 20px -15px;
            position: relative;
            &:after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 10px;
                background: #fff;
            }
        }
        .scroll-x {
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 10px;
            -webkit-overflow-scrolling: touch;

        }
        ul, li {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        ul {
            display: flex;
            padding-left: 15px;
        }
        li {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            flex: 1;
            max-width: 30%;
            min-width: 30%;
            text-align: center;
            padding-right: 15px;
            img {
                width: 100%;
                display: block;
            }
            .img {
                display: block;
                border: 1px solid @color-eee;
                -webkit-border-radius: 100%;
                -moz-border-radius: 100%;
                border-radius: 100%;
                overflow: hidden;
                padding: 2px;
                margin-bottom: 10px;
            }
        }

        .more {
            color: @btnTextColor;
            .icon {
                float: right;
                margin-right: -5px;
            }
        }
        .clock {
            border-top: 1px solid @color-eee;
            padding-top: 20px;
            margin-top: 20px;
            position: relative;
            h4 {
                font-size: 15px;
                margin: 0 0 5px 0;
                padding: 0;
                color: @color-666
            }
            h4 + p {
                margin: 0;
                color: @color-ccc;
                margin: 0;
                font-size: 14px;
            }
            .icon {
                position: absolute;
                color: @btnTextColor;
                right: 0;
                top: 50%;
                margin-top: -4px;
                font-size: 28px;
            }
        }
    }
    .title {
        font-size: @fontSize20;
        .more {
            float: right;
            font-weight: normal;
            font-size: @fontSize14;
            color: @color-ccc;
        }
    }
    .hot-activity {
        overflow: hidden;
        padding: 0 15px;
        margin: 0px -15px;
        a {
        }
    }
}

.my-plan {
    padding: @fixedTopHeight 0 0;
    .title {
        font-size: @fontSize20;
        margin: 0;
        padding: @containerPaddingLeft @containerPaddingLeft 0;
        .more {
            float: right;
            font-weight: normal;
            font-size: @fontSize14;
            color: @color-ccc;
        }
    }
    .title + p {
        font-size: @fontSize14;
        color: @color-999;
        padding: 0 @containerPaddingLeft;
        margin: 5px 0px @containerPaddingLeft;
    }
    .position {
        border-bottom: 1px solid @color-eee;
        text-align: center;
        padding: @containerPaddingLeft 0;
        a {
            font-size: @fontSize14;
        }
        .icon {
            vertical-align: -1px;
        }
        p {
            color: #ef5656;
            font-size: @fontSize12;
            margin: 8px 0 0;
        }
    }

    .pipi-rmd {
        img {
            display: block;
        }
    }

    .self-ctrl {
        ul, li {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .filter {
            position: relative;
            background: #fafafa;

            ul {
                padding: @containerPaddingLeft 10px;
                display: none;
                flex-wrap: wrap;
                &.active {
                    display: flex;
                }
                li {
                    font-size: @fontSize12;
                    border: 1px solid @color-666;
                    color: @color-666;
                    -webkit-border-radius: 20px;
                    -moz-border-radius: 20px;
                    border-radius: 20px;
                    padding: 4px 8px;
                    margin: 5px;

                    &.active {
                        background: @btnTextColor;
                        border-color: @btnTextColor;
                        color: @color-fff
                    }
                }
            }
            .btn {
                font-size: @fontSize14;
                position: absolute;
                right: 15px;
                top: -45px;

                &.active {
                    color: @btnTextColor;
                }
            }
        }
        .tab-list {
            .tab {
                overflow: hidden;
                border-bottom: 1px solid @color-eee;
                .hidden-x-scroll;
                ul {
                    display: flex;
                    overflow-x: scroll;
                    overflow-y: hidden;
                    padding: 0 5px;
                }

                li {
                    font-size: @fontSize14;
                    white-space: nowrap;
                    margin: 0 10px;
                    padding: 15px 0;
                    color: @color-999;

                    &.active {
                        color: @color-333;
                    }
                }
            }
            .content {
                ul {
                    padding: 0px @containerPaddingLeft;
                }
                li {
                    padding: @containerPaddingLeft 0;
                    border-bottom: 1px solid @color-eee;
                    display: flex;
                    align-items: flex-start;
                    img {
                        flex: 1;
                        max-width: 120px;
                    }
                    img + div {
                        flex: 2;
                        padding-left: 10px;
                        h4 {
                            font-size: @fontSize14;
                            margin: 10px 0;
                        }

                        p {
                            margin: 0 0 10px 0;
                            color: @color-999;
                            font-size: @fontSize12;
                        }
                        .tag {
                            font-size: @fontSize12;
                            -webkit-border-radius: 10px;
                            -moz-border-radius: 10px;
                            border-radius: 10px;
                            border: 1px solid @btnTextColor;
                            color: @btnTextColor;
                            padding: 0 5px;
                        }
                        .price {
                            span:first-child {
                                font-size: @fontSize16;
                                color: @btnTextColor;
                            }
                        }
                        .btn-card {
                            float: right;
                            font-size: 20px;
                            color: @btnTextColor;
                            margin-top: -30px;
                        }
                    }
                }
            }
        }
    }
    .fixed-cart {
        position: fixed;
        right: 15px;
        bottom: 15px;

        background: #464851;
        color: #fff;
        -webkit-border-radius: 100%;
        -moz-border-radius: 100%;
        border-radius: 100%;
        padding: 9px 11px 11px 9px;
        height: 30px;
        width: 30px;
        -webkit-box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, .2);
        -moz-box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, .2);
        box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, .2);
        .num {
            position: absolute;
            right: 0;
            top: 0;
            font-style: normal;
            background: @btnTextColor;
            font-size: @fontSize12;
            width: 14px;
            height: 14px;
            text-align: center;
            line-height: 14px;
            -webkit-border-radius: 10px;
            -moz-border-radius: 10px;
            border-radius: 10px;
        }
        .icon {
            font-size: 30px;
        }
    }
}

.my-address {
    padding: @fixedTopHeight 0 0;
    .fixed-top{
        .btn-add{
            float: right;
            position: relative;
            z-index:2;
            color:@btnTextColor
        }
    }
    .search {
        .am-navbar{
            padding:;
            height:44px;
            padding:10px 15px;

        }
        .am-navbar-left {
            background: #efeff4;
            border-top-left-radius:@radius4;
            border-bottom-left-radius:@radius4;
            position: relative;
            .am-navbar-left-icon {
                position: absolute;
                right:0px;
                float: right;
            }
        }
        .am-navbar-right {

            display: none;
        }
        .am-navbar-title {
            border-top-right-radius:@radius4;
            border-bottom-right-radius:@radius4;
            background: #efeff4;
            flex: 2;
            .am-search{
                background: none;
            }
        }
        .foo-menu {
            position: relative;
            z-index: 1000 !important;
        }

        .menu-active .top-nav-bar {
            z-index: 80;
        }

        .top-nav-bar {
            position: relative;
            color: @color-333;
        }
        .am-navbar-title {
        }
        .menu-mask {
            content: ' ';
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
            opacity: 0.4;
            z-index: 79;
        }
    }
    .cur-pos,
    .my-add-list{
        h4{
            margin:0;
            font-size:@fontSize14;
            color: @color-999;
            font-weight: normal;
            background: #f5f5f5;
            padding:5px 15px;
        }
    }
    .cur-pos{
        p{
            padding:0 15px;
            display: flex;
            align-items: center;
            .icon{
                flex:1;
                max-width:22px;
                color: @btnTextColor;
            }
            .refresh{
                text-align: right;
                color:@color-999;
            }
            span{
                flex:5
            }
        }

    }
}